import request from '@/utils/request'

// 产线分页查询
export const getLineList = (params: any) =>
  request({
    'url': '/line/page',
    'method': 'get',
    params
  })

// 产线查询，无需分页
export const queryNoPaging = (params: any) =>
  request({
    'url': '/line/queryNoPage',
    'method': 'get',
    params
  })

//根据产线查询料号
export const getPartNumberByLine = (params: any) =>
  request({
    'url': '/line/getPartNumber',
    'method': 'get',
    params
  })

//根据部门和产线查询停机原因
export const getDowntimeReason = (params: any) =>
  request({
    'url': '/line/getDowntimeReason',
    'method': 'get',
    params
  })

//新增班次
export const addNewShiftBook = (params: any) =>
  request({
    'url': '/line/addNewShiftBook',
    'method': 'post',
    params
  })

//根据料号和产线获取料号的消费者和CT时间
export const getCTAndCustomer = (params: any) =>
  request({
    'url': '/line/getCTAndCustomer',
    'method': 'get',
    params
  })
